package net.citiport.ggltranslate.impl;

import static org.junit.Assert.*;

import net.citiport.ggltranslate.ggl.DetectedLang;

import org.junit.Test;

public class JsonDetectParserTest {

	@Test
	public void testParser() {
		JsonDetectParser parser = new JsonDetectParser();
		DetectedLang dl = parser.parse("{\"responseData\": {\"language\":\"en\",\"isReliable\":false,\"confidence\":0.01737435}, \"responseDetails\": null, \"responseStatus\": 200}");
		assertEquals("result", "en", dl.responseData.language);
	}

}
